﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="user.aspx.cs" Inherits="HPIT_Library.user" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link rel="stylesheet" />
		<link rel="stylesheet" href="css/Site.css" />
		<link rel="stylesheet" href="css/zy.all.css" />
		<link rel="stylesheet" href="css/font-awesome.min.css" />
		<link rel="stylesheet" href="css/amazeui.min.css" />
		<link rel="stylesheet" href="css/admin.css" />
</head>
<body>
    <form id="form1" runat="server">
       <div class="dvcontent">

			<div>
				<!--tab start-->
				<div class="tabs">
					<div class="hd">
						<ul>
							<li class="on" style="box-sizing: initial;-webkit-box-sizing: initial;">查看用户</li>
							<li class="" style="box-sizing: initial;-webkit-box-sizing: initial;" >
								<a href="userAdd.aspx">添加用户</a>
							</li>
						</ul>
					</div>
					<div class="bd">
						<ul style="display: block;padding: 20px;">
							<li>
								<!--分页显示角色信息 start-->
								<div>
                                   
                                    姓名:<asp:TextBox ID="txt_Name" runat="server"></asp:TextBox>
									电话号码:<asp:TextBox ID="txt_Phone" runat="server"></asp:TextBox>
									<asp:Button ID="Button1" runat="server" Text="查询" OnClick="Button1_Click" />

								</div>
								<div id="dv1" style="text-align:center">
                                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id" Width="100%">
                                        <Columns>
                                            <asp:BoundField DataField="id" HeaderText="编号" InsertVisible="False" ReadOnly="True" SortExpression="id" />
                                            <asp:BoundField DataField="MemberName" HeaderText="姓名" SortExpression="MemberName" />
                                            <asp:TemplateField HeaderText="性别" SortExpression="MemberSex">
                                                
                                                <ItemTemplate>
                                                    <asp:Label ID="Label1" runat="server" Text='<%# Convert.ToInt32(Eval("MemberSex"))==1?"女":"男" %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="MemberSite" HeaderText="家庭住址" SortExpression="MemberSite" />
                                            <asp:BoundField DataField="MemberPhone" HeaderText="电话" SortExpression="MemberPhone" />
                                            <asp:BoundField DataField="MemberTime" HeaderText="办理时间" SortExpression="MemberTime" />
                                            <asp:TemplateField HeaderText="操作">
												<ItemTemplate>
													<a href='<%#"userAdd.aspx?id="+  Eval("id")%>'>编辑</a>
													
												</ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
								</div>
								
								<!--分页显示角色信息 end-->
							</li>
						</ul>
						<ul class="theme-popbod dform" style="display: none;">
							<div class="am-cf admin-main" style="padding-top: 0px;">
			<!-- content start -->
			
				<div class="am-cf admin-main" style="padding-top: 0px;">
					<!-- content start -->
		
					<!-- content end -->
				</div>
							<!--添加角色 end--
						</ul>
					</div>
				</div>
				<!--tab end-->

			</div>


		</div>
    </form>
</body>
</html>
